<script setup>
import { ref } from "vue";
const showWindow = ref();
</script>

<template>
  <es-button @click="showWindow = !showWindow">创建window</es-button>
  <es-window
    :show="showWindow"
    :title="'window面板'"
    :okText="'确认'"
    :cancelText="'取消'"
    :onlyButton="false"
    :readonly="false"
    :width="700"
    :height="400"
    :isFocus="true"
    @cancel="showWindow = false"
    @ok="changOk"
    :background="'rgba(0, 1, 50, 0.5)'"
    :btnBackground="'rgba(1, 1, 50, 0.5)'"
  >
    <div style="color: black">内容</div>
  </es-window>
</template>
